package cn.hdu.liang.core.dao.order;

import cn.hdu.liang.core.bean.order.Order;
import cn.hdu.liang.core.query.order.OrderQuery;

import java.util.List;


public interface OrderDao {

    //添加
    public Integer addOrder(Order order);

    //根据主键查找
    public Order getOrderByKey(Integer id);

    //根据主键批量查找
    public List<Order> getOrdersByKeys(List<Integer> idList);

    //根据主键删除
    public Integer deleteByKey(Integer id);

    //根据主键批量删除
    public Integer deleteByKeys(List<Integer> idList);

    //根据主键更新
    public Integer updateOrderByKey(Order order);

    //分页查询
    public List<Order> getOrderListWithPage(OrderQuery orderQuery);

    //集合查询
    public List<Order> getOrderList(OrderQuery orderQuery);

    //总条数
    public int getOrderListCount(OrderQuery orderQuery);
}
